package com.ccx.mytemplate.util;

import java.util.Locale;

import com.ccx.mytemplate.entity.MyRecords;
import com.github.javafaker.Faker;

public class FakerUtil {

    private static final Faker faker = new Faker(Locale.CHINA);

    public static MyRecords randomMyRecords() {
        return MyRecords.builder().title(faker.name().fullName())
                            .content(faker.address().fullAddress())
                            .createUser(faker.funnyName().name())
                            .updateUser(faker.funnyName().name())
                            .phone(faker.phoneNumber().phoneNumber())
                            .build();
    }

}
